package com.twentyOne.ClothingLand.service.impl;

import java.sql.Timestamp;
import java.util.Date;

import com.twentyOne.ClothingLand.dao.IReturnGoodsDAO;
import com.twentyOne.ClothingLand.dao.impl.ReturnGoodsDAO;
import com.twentyOne.ClothingLand.service.IReturnGoodsService;
import com.twentyOne.ClothingLand.vo.ReturnGoods;

public class ReturnGoodsService implements IReturnGoodsService {
	
	private IReturnGoodsDAO returnGoodsDAO = new ReturnGoodsDAO();
	
	@Override
	public void addReturnGoods(ReturnGoods returnGoods) {
		
		returnGoods.setReturnTime(new Timestamp((new Date()).getTime()));
		this.returnGoodsDAO.addReturnGoods(returnGoods);
		
	}

}
